package config

import (
	"fmt"
	"io/ioutil"

	"gopkg.in/yaml.v2"
)

type baseConfig struct {
	Host string `yaml:"Host"`
	Port string `yaml:"Port"`
}

var ConfigValues baseConfig

func InitConfig() {
	configFile, err := ioutil.ReadFile("./config/config.yaml")
	if err != nil {
		fmt.Println(err)
		return
	}
	err = yaml.Unmarshal(configFile, &ConfigValues)
	if err != nil {
		fmt.Println(err)
		return
	}
}
